package com.atguigu.d_system;

import java.util.Arrays;

public class Demo1 {
    public static void main(String[] args) {
        System.out.println("System.currentTimeMillis() = " + System.currentTimeMillis());
        int[] arr1 = {1,2,3,4,5};

        int[] arr2 = new int[10];

        //把arr1中的2,3,4三个元素复制到arr2中的第5,6,7个元素位置
        System.arraycopy(arr1,1,arr2,4,3);

        System.out.println("Arrays.toString(arr2) = " + Arrays.toString(arr2));

        System.out.println("System.currentTimeMillis() = " + System.currentTimeMillis());
    }
}
